﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once

#include "GcmpJournalInterface.h"

#include <map>

namespace gcmp
{
    /// \brief 日志消息发送器
    ///
    /// 用于将日志产生的通信数据传送到另外一个APP
    /// 需要用户派生并且通过IJournalClient::SetJournalMessageSender设置到日志模块
    /// 适用场景见IJournalClient
    class GCMP_JOURNAL_INTERFACE_EXPORT IJournalMessageSender
    {
    public:
        virtual ~IJournalMessageSender() {}

        /// \brief 发送日志通信数据
        ///
        /// \param[in] message 日志消息
        virtual void SendJournalMessage(const std::map<std::wstring, std::wstring> &message) const = 0;
    };
}


